#include "actionmatch.h"
#include <QtCore>
#include <QtGui>

ActionMatch::ActionMatch()
{
    classname = __FUNCTION__;
    actParam = QJsonObject();
}

ActionMatch::ActionMatch(const QPixmap &img)
{
    classname = __FUNCTION__;
    actParam = QJsonObject();
    QString path = QDir::tempPath()+"/ActionMatch.png";
    if(img.save(path))
    {
        actParam.insert("path",path);
    }
}

ActionMatch::ActionMatch(QString imgPath)
{
    actParam = QJsonObject();
    actParam.insert("path",imgPath);

}

ExecuteRet ActionMatch::execute()
{
    //待实现
    qInfo()<<classname<<"not implement yet.";
    return ERError;
}
